home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global givMAINMONITORSPRITE, givROLLCREDITSMASKSPRITE, givState, givTextHiliteColor, givTextFont, givAthleteNameList, givGuestStarList
- puppetSprite(givROLLCREDITSMASKSPRITE, 1)
- DisableIdleAnim()
- DVHide()
- if the mode of givState = #play then
- set the castNum of sprite givROLLCREDITSMASKSPRITE to the number of cast "PlayModeMask"
- else
- set the castNum of sprite givROLLCREDITSMASKSPRITE to the number of cast "EditModeMask"
- end if
- set the visible of sprite givROLLCREDITSMASKSPRITE to 1
- set the castNum of sprite givMAINMONITORSPRITE to the number of cast "MainMonitorCastBlack"
- updateStage()
- if the userTitle of givState = EMPTY then
- set the text of cast "title text" to "Awesome Athletes"
- else
- set the text of cast "title text" to the userTitle of givState
- end if
- if the userName of givState = EMPTY then
- nothing()
- else
- set the text of cast "name text" to the userName of givState
- end if
- if the userLoc of givState = EMPTY then
- nothing()
- else
- set the text of cast "location text" to the userLoc of givState
- end if
- set givGuestStarList to []
- repeat with I = 1 to count(the editList of givState)
- set clipID to getAt(the editList of givState, I)
- if (char 1 to 2 of clipID = "QA") or (char 1 to 2 of clipID = "AV") then
- set athID to char 3 to 5 of clipID
- if getPos(givGuestStarList, item 1 of getaProp(givAthleteNameList, athID)) = 0 then
- append(givGuestStarList, item 1 of getaProp(givAthleteNameList, athID))
- end if
- end if
- end repeat
- MessagePut("Guest Stars found:" && givGuestStarList)
- set the mouseDownScript to "CreditsMouseDown"
- end
-